package org.example.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.example.pojo.DItem;
import org.example.pojo.DLeave;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.pojo.select.DLeaveSelect;

import java.util.List;
import java.util.Map;

/**
* @author chenhongkai
* @description 针对表【d_leave(请假记录表)】的数据库操作Mapper
* @createDate 2024-08-05 17:06:47
* @Entity org.example.pojo.DLeave
*/
public interface DLeaveMapper extends BaseMapper<DLeave> {

    Integer SelectLeavesTotal(@Param("dLeaveSelect") DLeaveSelect dLeaveSelect);

    IPage<Map> SelectLeaves(Page<DItem> page,@Param("dLeaveSelect")  DLeaveSelect dLeaveSelect);
    void insertLeave(DLeaveSelect dLeaveSelect);

    void deleteLeave(DLeave dLeave);


}




